package com.party.core.model.member;

import com.party.core.model.BaseModel;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @Author: Administrator.
 * @Description: 商城用户地址库
 * @Date:Created in 2017/9/12 0012 下午 17:06.
 */
public class MemberAddress extends BaseModel {
    public static final Integer IS_DEFAULT_ADDRESS = 1;
    public static final Integer NOT_DEFAULT_ADDRESS = 2;

    @NotBlank(message = "收货人名称不能为空")
    private String name; // 姓名

    @NotBlank(message = "收货人联系方式不能为空")
    private String phone; // 手机号码

    @NotBlank(message = "省份不能为空")
    private String provinceId; // 省份id

    @NotBlank(message = "城市不能为空")
    private String cityId; // 城市id

    private String regionId; // 区域id

    @NotBlank(message = "详情地址不能为空")
    private String detailAddress; // 详细地址

    private String showAddress; // 显示的地址
    private Integer defaultAddress; // 是否为默认地址
    private String memberId; // 用户id
    private String postCode; // 邮编

    public MemberAddress() {
    }

    public MemberAddress(String memberId) {
        this.memberId = memberId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public Integer getDefaultAddress() {
        return defaultAddress;
    }

    public void setDefaultAddress(Integer defaultAddress) {
        this.defaultAddress = defaultAddress;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getShowAddress() {
        return showAddress;
    }

    public void setShowAddress(String showAddress) {
        this.showAddress = showAddress;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }
}
